package com.ruoyi.datastatistics.mapper;

import java.util.List;
import com.ruoyi.datastatistics.domain.Bill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.datastatistics.domain.BillBo;
import org.apache.ibatis.annotations.Param;

/**
 * 欠费明细Mapper接口
 *
 * @author zt
 * @date 2025-05-27
 */
public interface BillMapper extends BaseMapper<Bill>
{

    int insertForDate(@Param("date") String date,@Param("userId") String userId);

    List<Bill> selectBillList(Bill bill);
    List<BillBo> selectBillListStat(Bill bill);

    //获取指定月份指定能耗类型下所有费用
    Double selectTotalPriceInMonth(@Param("tenantId") String tenantId, @Param("readDate") String readDate, @Param("energyType")int energyType);
}
